import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'mallSet/add',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'mallSet/delete',
    method: 'delete',
    data: ids
  })
}

export function getAll() {
  return request({
    url: 'mallSet/getMallSet',
    method: 'get'
  })
}

export function edit(data) {
  return request({
    url: 'mallSet/update',
    method: 'put',
    data
  })
}
export function getMallSet(data) {
  return request({
    url: 'mallSet/getMallSet',
    method: 'GET',
    data
  })
}
export function getDeliveryTime(data) {
  return request({
    url: 'mallSet/getDeliveryTime',
    method: 'GET',
    params: data
  })
}
export function getDeliveryTimeAll(params) {
  return request({
    url: 'mallSet/getDeliveryTimeAll',
    method: 'put',
    params
  })
}

export default { add, edit, del, getAll, getMallSet, getDeliveryTime, getDeliveryTimeAll }
